form method = 'get'
  .panel.panel-default
    .panel-heading
      = link_to "新增" , new_supplier_path, class: "btn btn-primary btn-xs", :remote=>true
    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 编号
	          th 名称
	          th 单位电话
	          th 单位传真
	          th 单位邮箱
	          th 单位地址
	          th 税号
	          th 备注
	          th 操作
	          
	        -@suppliers.each do |s|
	          tr
	            td = s.code
	            td = s.name
	            td = s.phone
	            td = s.fax
	            td = s.email
	            td = s.addr
	            td = s.tax_num
	            td = s.note
	            td
	               = link_to "修改", edit_supplier_path(:id => s.id), class: "btn btn-success btn-xs", style: "margin-right:10px;", :remote=>true
	               = link_to "删除" , supplier_path(:id => s.id), :method => "DELETE", data: {confirm: '一旦删除,将无法恢复,是否删除?'}, class: "btn btn-danger btn-xs"
